package com.chiefcto.home;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

public class MainActivity extends Activity {
	/*
	 * properties
	 */
	private MySurface mySurface;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mySurface = new MySurface(this);
        mySurface.requestFocus();
        mySurface.setFocusableInTouchMode(true);
        LinearLayout ll = (LinearLayout)findViewById(R.id.main_liner);
       ll.addView(mySurface);
    }
    
    @Override
    protected void onPause() {
    	// TODO Auto-generated method stub
    	super.onPause();
    	mySurface.onPause();
    }
    
    @Override
    protected void onResume() {
    	// TODO Auto-generated method stub
    	super.onResume();
    	mySurface.onResume();
    }
}